package com.ruoyi.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 调拨明细管理对象 erp_inventory_transfer_detail
 * 
 * @author zhp
 * @date 2025-08-08
 */
public class ErpInventoryTransferDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 调拨单ID */
    private Long transferId;

    /** 物料ID */
    private Long materialId;

    /** 库存ID*/
    private Long inventoryId;

    /** 计划调拨数量 */
    private BigDecimal planQuantity;

    /** 单位 */
    private String unit;

    /** 批次号 */
    private String batchNo;

    /** 状态(0:待调拨,1:部分调拨,2:已完成) */
    private Long status;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    private ErpMaterial material;

    private ErpInventory erpInventory;

    public Long getInventoryId() {
        return inventoryId;
    }

    public void setInventoryId(Long inventoryId) {
        this.inventoryId = inventoryId;
    }

    public ErpMaterial getMaterial() {
        return material;
    }

    public void setMaterial(ErpMaterial material) {
        this.material = material;
    }

    public ErpInventory getErpInventory() {
        return erpInventory;
    }

    public void setErpInventory(ErpInventory erpInventory) {
        this.erpInventory = erpInventory;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setTransferId(Long transferId) 
    {
        this.transferId = transferId;
    }

    public Long getTransferId() 
    {
        return transferId;
    }

    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }

    public void setPlanQuantity(BigDecimal planQuantity) 
    {
        this.planQuantity = planQuantity;
    }

    public BigDecimal getPlanQuantity() 
    {
        return planQuantity;
    }

    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }


    public void setBatchNo(String batchNo) 
    {
        this.batchNo = batchNo;
    }

    public String getBatchNo() 
    {
        return batchNo;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("transferId", getTransferId())
            .append("materialId", getMaterialId())
            .append("inventoryId", getInventoryId())
            .append("planQuantity", getPlanQuantity())
            .append("unit", getUnit())
            .append("batchNo", getBatchNo())
            .append("status", getStatus())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("material", getMaterial())
            .append("erpInventory", getErpInventory())
            .toString();
    }
}
